# -*- coding: utf-8 -*- 
"""
copyright

"""
import sys
import os
sys.path.append(os.path.normpath(os.path.join(os.getcwd(), os.path.pardir)))

from PyQt5.QtWidgets import QMainWindow
from PyQt5.QtWidgets import QWidget
from PyQt5.QtCore import QSize
from PyQt5.Qt import Qt
from conf import APPConfig
from ui.menus import bmMenuBar


########################################################################
class mainWindow(QMainWindow):
    """
    @desc:程序主窗口
    @date:2014-05-24
    @user:zgkPy
    @V1.0
    """

    #----------------------------------------------------------------------
    def __init__(self):
        """构造器"""
        super(mainWindow, self).__init__()
        self.setWindowTitle(APPConfig.APP_TITLE)
        #去掉标题栏
        self.setWindowFlags(Qt.FramelessWindowHint)
        self.setVisible(True)
        self.setFixedSize(QSize(600, 480))
        self.setWindowOpacity(1)
        
        #设置主区域
        self.initMainWindow()
        #self.initMenuBar()

    def initMainWindow(self):
        """
        初始化程序主界面
        标题栏
        工具栏
        内容区：左侧导航栏，右侧内容区
        状态栏        
        """
        widgets  = QtWidgets ()
        self.setCentralWidget(widgets)    
        
        
    def initMenuBar(self):
        menuBar = bmMenuBar()
        self.setMenuBar(menuBar)










